<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;

class UserChannel extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = '';

    public function setadinfo()
    {

        $id = input('id');
        $adinfo = input('adinfo');

        if(!empty($id) && !empty($adinfo)){
            $res = Db::name("user_channel")->where(['id'=>$id])->update(['adinfo'=>$adinfo]);
        }
        return $this->success("修改广告账户信息成功");
    }

}
